@import "reset.css";
@import "../font/iconfont.css";
html,body{
    height: 100%;
}
body{
    max-width: 7.5rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}
header{
    height: 2.24rem;
    background: linear-gradient(#ff6040,#ff7661,#ff8476);
    padding: .43rem 0 .2rem;
    box-sizing: border-box;
    .title{
        height: .64rem;
        display: flex;
        color: #ffdfd8;
        align-items: center;
        h2{
            font-size: .3rem;
            margin: 0 1.55rem 0 3.42rem;
        }
        p{
            width: 1.72rem;
            height: .62rem;
            border: 1px solid #ff8a6f;
            border-radius: .3rem;
            position: relative;
            display: flex;
            justify-content: space-around;
            align-items: center;

            span{
                &:nth-child(1){
                    font-size: .4rem;
                }
                &:nth-child(2){
                    font-size: .3rem;
                }
            }
            
            i{
                width: 1px;
                height: .37rem;
                background:#ff8a6f; 
                position: absolute;
                top: .12rem;
                left: .86rem;
            }
        }
    }
 
    input{
        width: 6.84rem;
        height: .6rem;
        border:1px solid #e6e6e6;
        background: #fff;
        margin: .3rem .2rem 0;
        border-radius: .05rem;
        &::placeholder{
            font-size: .26rem;
            padding-left: .22rem;
            color: #9e9e9e;
        }
    }
}
// 主体部分
main{
    flex: 1;
    overflow: auto;
    display: flex;
    margin: 0 .2rem 1.66rem 0;
    justify-content: space-between;

    ul{
        overflow: auto;
        width:2.36rem;
        padding-top: .3rem;
        background: #fff;

        li{
            line-height: .88rem;
            text-align: center;
            a{
                font-size: .26rem;
                color: #999;
                &.cur{
                    font-size: .3rem;
                    font-weight: bold;
                    color: #ff6040;
                }
            }
        }
    }
    .right{
        overflow: auto;
        section{
        width: 4.64rem;
        margin-top: .3rem;
        padding: .21rem 0 .21rem .2rem;
        box-sizing: border-box;
        background: #fff;
        
            h3{
                font-size: .3rem;
                color: #333;
                font-weight: bold;
            }
            article{
                flex-wrap: wrap;
                figure{
                    float: left;
                    margin-right: .2rem;
                    width: 1.28rem;
                    margin-top: .21rem;
                    img{
                    width: 1.28rem;
                    }
                    figcaption{
                        font-size: .22rem;
                        text-align: center;
                        color: #9c9c9c;
                    }
                }
            }
        
        }
    }
    
}
// 页脚
footer{
    width: 7.5rem;
    height: 1.52rem;
    display: flex;
    justify-content: space-around;
    padding-top: .14rem;
    border-top: 1px solid #ccc;
    position: fixed;
    bottom: 0;
    left: 50%;
    margin-left: -3.75rem;
    background: #fff;
    
    p{
        display: flex;
        flex-direction:column;
        font-size: .18rem;
        color: #a1a1a1;
        text-align: center;

        i{
            font-size: .5rem !important;
            color: #999;
        }

        &.cur{
            color: #ff6040;
            i{
                color: #ff6040;
            }
        }
    }
}
